<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title><?php
        // Add the blog name.
        bloginfo( 'name' );

        // Add the blog description for the home/front page.
        $site_description = get_bloginfo( 'description', 'display' );
        if ( $site_description && ( is_home() || is_front_page() ) )
            echo " | $site_description";
        ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <link rel="stylesheet" type="text/css" href="/wp-includes/css/mb.scrollable.css" />
    <link href="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/reset.css" rel="stylesheet" type="text/css" media="all" />
    <link href="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/typography.css" rel="stylesheet" type="text/css" media="all" />
    <link href="<?php echo get_template_directory_uri(); ?>/assets/fonts.css" rel="stylesheet" type="text/css" media="all" />
    <link href="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/forms.css" rel="stylesheet" type="text/css" media="all" />
    <link href="http://vmrf.ru/wp-content/themes/vmrf/assets/layout.css" rel="stylesheet" type="text/css" media="all" />
    <link href="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/print.css" rel="stylesheet" type="text/css" media="print" />
    <!--[if lt IE 9]><link href="assets/ie.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script>
    <script type="text/javascript" src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/js.cycle.js"></script>
    <script type="text/javascript" src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/js.common.js"></script>
    <?php wp_head(); ?>
</head>

<body>
<div id="layout">

  <div class="user_panel">
    <div class="c">
      <div class="search">
        <input type="text" class="input-txt-s" onfocus="if (this.value == 'Поиск по сайту') { this.value=''; }" onblur="if (this.value == '') { this.value='Поиск по сайту' }" value="Поиск по сайту" />
        <input type="submit" class="input-submit" />
      </div>
      <div class="social">
        <a href=""><img src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/images/soc_1.png" alt="" /></a>
        <a href=""><img src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/images/soc_2.png" alt="" /></a>
        <a href=""><img src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/images/soc_3.png" alt="" /></a>
        <a href=""><img src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/images/soc_4.png" alt="" /></a>
        <a href=""><img src="<?php echo ay()->config()->get_template_directory_uri(); ?>/assets/images/soc_5.png" alt="" /></a>
      </div>
      <ul class="user_menu clearfix">
        <li>Привет, <a href="" class="ico ico_userName">
        <?php global $current_user;
              get_currentuserinfo();
              echo $current_user->ID ? $current_user->user_login : "посетитель";
        ?></a></li>
        <li><a href="wp-admin/post-new.php?post_type=post" class="ico ico_userPublish">Опубликовать новость</a></li>
       <!-- <li><a href="" class="ico ico_userMsg">Личные сообщения</a></li-->
        <?php if($current_user->ID == 0) { ?>
            <li><a href="<?php echo wp_login_url(); ?>" class="ico ico_userLogin">Вход</a></li>
        <?php } else { ?>
            <li><a href="<?php echo wp_logout_url(); ?>" class="ico ico_userLogout">Выход</a></li>
        <?php } ?>
      </ul>
    </div>
  </div>
    
  <div id="wrap" class="clearfix">
    <!--header-->
    <div id="header">
      <h1 class="logo"><a href="/" title="seo title">seo title</a></h1>
      <div class="quote">
        <p><?php echo $site_description; ?></p>
        <em>Дмитрий Медведев</em></div>
    </div>
    <!--header end--> 
